package com.study.dao;

import com.github.pagehelper.Page;
import com.study.pojo.CheckGroup;
import com.study.pojo.CheckItem;

import java.util.List;
import java.util.Map;

public interface CheckGroupDao {

    public abstract void add(CheckGroup checkGroup);

    public abstract void setCheckGroupAndCheckItem(Map<String, Integer> map);

    public abstract Page<CheckGroup> selectByCondition(String queryString);

    public abstract void deleteGroupAndItem(Integer checkGroupId);

    public abstract void delete(Integer id);

    public abstract CheckGroup findById(Integer id);

    public abstract List<Integer> findCheckItemIdByCheckGroupId(Integer checkGroupId);

    public abstract void edit(CheckGroup checkGroup);

    public abstract List<CheckGroup> findAll();

}
